package edu.yuhf.pac;

			//消费者
public class Customer extends Thread {
	private int num;
	private Storage stor;
	public Customer(int num, Storage stor) {
		super();
		this.num = num;
		this.stor = stor;
	}
	public void run() {
		stor.buy(num);
	}
	public int getNum() {
		return num;
	}
	public void setNum(int num) {
		this.num = num;
	}
	public Storage getStor() {
		return stor;
	}
	public void setStor(Storage stor) {
		this.stor = stor;
	}
	
}
